package com.tengfei.main.exam.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tengfei.common.core.mapper.BaseMapperPlus;
import com.tengfei.main.exam.domain.PaperQu;
import com.tengfei.main.exam.domain.bo.PaperQuQueryBo;
import com.tengfei.main.exam.domain.vo.PaperObjQuVo;
import com.tengfei.main.exam.domain.vo.PaperQuVo;
import com.tengfei.main.question.domain.vo.ObjectiveVo;
import com.tengfei.main.question.domain.vo.SubjectiveVo;
import org.apache.ibatis.annotations.Param;

/**
 * 试卷试题Mapper接口
 *
 * @author tengfei
 * @date 2022-07-31
 */
public interface PaperQuMapper extends BaseMapperPlus<PaperQuMapper, PaperQu, PaperQuVo> {

    // 查询试卷已绑定的客观题列表
    Page<PaperObjQuVo> getBindObjQuList(@Param("page") Page<Object> build, @Param("bo") PaperQuQueryBo bo);

    // 查询试卷已绑定的主观题列表
    Page<PaperObjQuVo> getBindSubQuList(@Param("page") Page<Object> build, @Param("bo") PaperQuQueryBo bo);

    Page<ObjectiveVo> getUnBindObjQuList(@Param("page") Page<Object> build, @Param("bo") PaperQuQueryBo bo);

    Page<SubjectiveVo> getUnBindSubQuList(@Param("page") Page<Object> build, @Param("bo") PaperQuQueryBo bo);
}
